//配置文件
var _ = require('underscore');
_.mixin(require('../../Gruntfile/underscore.mixin'));
var commonConfig = require('../../common/config');

module.exports = {
    /*
     打包分组规则
     */
    group: {
        passport: ["passport"],
        user: ['user'],
        index: ['index'],
        item_cate: ['item_cate'],
        item: ['item'],
        member: ['member'],
        topic: ['topic'],
        transaction: ['transaction'],
    },
    /*
     配置依赖
     deps中jquery可以写成"$"、"jquery"两种形式
     */
    require: _.extend({
        common: {
            path: '__PATH__/js/common',
            deps: ['$']
        },
        bootstrap: {
            path: '__PATH__/bootstrap/js/bootstrap',
            deps: ['$']
        },
        bootstrap_wizard: {
            path: '__VENDOR__/plugins/bootstrap-wizard/jquery.bootstrap.wizard',
            deps: ['$', 'bootstrap']
        },
        elevatezoom: {
            path: '__VENDOR__/plugins/jquery.elevatezoom',
            deps: ['$']
        },
        idangerous: {
            path: '__VENDOR__/plugins/jquery.idangerous',
            deps: ['$']
        },
        swipebox: {
            path: '__VENDOR__/plugins/jquery.swipebox',
            deps: ['$']
        },
        swiper: {
            path: '__VENDOR__/plugins/swiper-3.3.1.jquery.min',
            deps: ['$']
        },
        tinyscrollbar: {
            path: '__VENDOR__/plugins/tinyscrollbar',
            deps: ['$']
        },
        WdatePicker: {
            path: '__VENDOR__/My97DatePicker/WdatePicker',
            deps: ['$']
        },
        slider: {
            path: '__VENDOR__/slider',
            deps: ['$']
        },
        uploadifive: {
            path: '__VENDOR__/plugins/jquery.uploadifive',
            deps: ['$']
        }
    }, commonConfig.require)
};